<?

/* include all test class files */
include 'PHPUnitTest.php';

/* include the test runner */
require_once 'PHPUnit/TextUI/TestRunner.php';

/* run tests and output results */
$suite = new PHPUnit_Framework_TestSuite("PHPUnitTest");
PHPUnit_TextUI_TestRunner::run($suite);

/* test email sending */
echo "\n\n<br><br>sending test email message...\n";
include "libhtml.php";
$msg = "This is a test. If you received this then an email was successfully sent from the Doc Mgr system.";
$status = sendMail("jon180@gmail.com", "email sending test", $msg);
echo "status: $status\n";

?>